<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户管理</title>
<link rel="stylesheet" type="text/css" href="../resources/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../resources/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="../resources/agiledev/style/agiledev.css">
<link rel="stylesheet" type="text/css" href="../resources/agiledev/style/agiledev-crud.css">
<link rel="stylesheet" type="text/css" href="../resources/agiledev/style/agiledev-form.css">
<link rel="stylesheet" type="text/css" href="../resources/agiledev/plupload/css/plupload.queue.css">


<script type="text/javascript" src="../resources/easyui/jquery-1.6.min.js"></script>
<script type="text/javascript" src="../resources/agiledev/i18n/zh_CN.js"></script>
<script type="text/javascript" src="../resources/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../resources/easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="../resources/easyui/jquery.easyui.validation.custom.js"></script>
<script type="text/javascript" src="../resources/agiledev/jquery.ui.core.js"></script>
<script type="text/javascript" src="../resources/agiledev/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../resources/agiledev/upload.js"></script>
<script type="text/javascript" src="../resources/agiledev/form.js"></script>
<script type="text/javascript" src="../resources/agiledev/crud.js"></script>
<script type="text/javascript">
var options = {
	formInitUrl:'mvc/user/usermgt/init.json',
	saveUrl:'mvc/user/usermgt/add.json',
	updateUrl:'mvc/user/usermgt/update.json',
	removeUrl:'mvc/user/usermgt/remove.json',
	fields:[
		 {
			 title:'id',
			 field:'id',
			 formShow:false
		 },
		 {
			 title:'用户名',
			 field:'name'
		 },
		 {
			 title:'密码',
			 field:'password',
			 type:'password'
		 },
		 {
			 title:'手机号码',
			 field:'mobile'
		 },
		 {
			 title:'电子邮箱',
			 field:'email'
		 }
	],
	grid:{
		dataUrl:'mvc/user/usermgt/list',
		singleSelect:false,
		idField:'id',
		title:'用户管理'
	},
	search:{
		field:[
			{title:'用户名',id:'s_userId',field:'name'}
		]
 		,
		buttons:{
			'test':{handler:function(){alert($("#list").crud("getDatagrid").datagrid("getPager").pagination("options").total);}}
		}
 	}
};
$(function(){
	$("#list").crud(options);
	
});
</script>

</head>
<body>
<div class="list">
	<table id="list"></table>
</div>

</body>

</html>


